import { demoContractSend, demoCreateAccount, demoRouter, demoTokenApprove } from "./demo";

let main = async () => {
    console.log('Hello world')

    const opt = process.argv[2] ?? 'create'
    console.log('opt = ' + opt)
    switch (opt) {
        case 'create':
            demoCreateAccount()
            break
        case 'router':
            await demoRouter()
            break
        case 'swap':
            await demoContractSend()
            break
        case 'approve':
            await demoTokenApprove()
            break
        default:
            demoCreateAccount()
    }
}
main()

